﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class KnowlagePage : MonoBehaviour
{
    public EventImage[] eventImages;
    public Text konwlageTxt;
    public Text[] slectedTxts;

    public string[] slectedStrs;
    public string[] knowlagesStrs;


    private void Start()
    {

        for (int i = 0; i < slectedTxts.Length; i++)
        {
            slectedTxts[i].text = slectedStrs[i];
        }

        for (int i = 0; i < eventImages.Length; i++)
        {
            int temp = i;
            eventImages[i].enterEvent.AddListener(() => {
                konwlageTxt.text = knowlagesStrs[temp];
            });

        }
    }
}
